#!/bin/bash

read -p "请输入你想创建数据库的名字:" my_name

mysql -u root mysql <<EOF
show databases;
create database $my_name;
show databases;
EOF
